package com.neu.credit.creditscore.entity.hospital;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("diagnosis_records")
@Schema(name = "DiagnosisRecords", description = "诊疗记录信息表")
public class DiagnosisRecords {

    @Schema(description = "诊疗记录ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "预约ID")
    private Integer appointmentId;

    @Schema(description = "医生ID")
    private Integer doctorId;

    @Schema(description = "诊断结果")
    private String diagnosisResult;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;

    @Override
    public String toString() {
        return "DiagnosisRecords{" +
                "id=" + id +
                ", appointmentId=" + appointmentId +
                ", doctorId=" + doctorId +
                ", diagnosisResult='" + diagnosisResult + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}